<div class="titlebar"><i class="iconfont icon-text_icon"></i>优惠券列表</div>
<div id="actionbar">
    <div class="fn-right">
        <button class="button button-blue selectID" url="{:url('allwin/Shop/selectid',['shop_id' => $shop_id])}"> <i class="iconfont icon-add_icon"></i>增加优惠券</button>
    </div>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w60"></th>
            <th>优惠券信息</th>
            <th class="w90 fn-tac">类型</th>
            <th class="w90 fn-tar">剩余/初始</th>
            <th class="w90 fn-tar">领取(￥)</th>
            <th class="w90 fn-tar">购买(￥)</th>
            <th class="w90 fn-tar">额度(￥)</th>
            <th class="w90 fn-tar">满用(￥)</th>
            <th class="w90 fn-tar">抵扣/折扣</th>
            <th class="w120 fn-tac">更新日期</th>
            <th class="w140 fn-tac">操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><img src="{$vo.img ? $vo.img : '__PUBLIC__/admin/review.png'}?x-oss-process=style/80" class="w50"></td>
            <td>
                <i class="iconfont icon-discount"></i><span class="selectID fn-cp fn-fb" url="{:url('coupon/review',['id'=>$vo.id])}">{$vo.name}</span><br />
                <span class="gray"><i class="iconfont icon-wodedingdan2"></i>{$vo.tips}</span><br />
                <span class="selectID fn-cp" url="{:url('store/review',['id'=>$vo.store.id])}"><i class="iconfont icon-store_icon"></i>{$vo.store.name}</span>
            </td>
            <td class="fn-tac">
                <span class="fn-cp badge {$vo.is_platform?'bg-red':''}">{$vo.is_platform?'超级券':'普通券'}</span><br />
                <span class="fn-cp badge {$vo.is_check?'bg-blue':''}">消费券</span><br />
                <span class="fn-cp badge {$vo.is_shop?'bg-blue':''}">独立券</span>
            </td>
            <td class="fn-tar">{$vo.num}/{$vo.num_of}</td>
            <td class="fn-tar">￥{$vo.pay_price|money}</td>
            <td class="fn-tar">￥{$vo.shop_price|money}</td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.size|money}</td>
            <td class="fn-tar"><i class="iconfont icon-renminbi1688"></i>{$vo.howmuch|money}</td>
            <td class="fn-tar">{if $vo.types}{$vo.discount}折{else}￥{$vo.price}{/if}</td>
            <td class="fn-tac">{$vo.update_time|date="Y-m-d"}</td>
            <td class="fn-tac button-group">
                <a class="button button-mini isDel" url="{:url('shop/deleteShopCoupon',['shop_id' => $shop_id,'coupon_id'=>$vo.id])}" href="javascript:;" title="删除"><i class="iconfont icon-lajixiang"></i>删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','layer', function () {
    $('.isDel').isDel();
    $(".selectID").win({reload:1});
})
</script>